<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <title>新增奶羊</title>
    <style media="screen">
        * {
            padding: 0;
            margin: 0;
        }

        header {
            height: 0rem;
            background-color: #3fd5a5;
        }
    </style>
</head>

<body>
    <header></header>
    <footer>
    </footer>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/window.js"></script>
<script type="text/javascript" src="../script/request.js"></script>
<script type="text/javascript">
    function initFront() {

        var header = $api.dom('header'); // 获取 header 标签元素
        var headerHeight = $api.fixStatusBar(header);

        var height = api.winHeight - headerHeight;
        var footer = $api.dom('footer');
        footer = $api.offset(footer);
        var id = api.pageParam.id;
        height -= footer.h;

        api.openFrame({
            name: 'sheep_farme',
            url: 'sheep_farme.html',
            pageParam: {
                id: id
            },
            rect: {
                x: 0,
                y: headerHeight,
                w: 'auto',
                h: height
            },
        });
    }


    apiready = function() {
        initFront();
    }
</script>

</html>
